<div class="panel">
    <form id="diary-form" class="form-horizontal" role="form">

        <input type="hidden" name="id" value="<%= model.id %>">    

        <div class="form-group row">
            <label class="col-md-2" for="name">Name</label>
            <div class="col-md-10">
                <input name="name" class="form-control" placeholder="Enter Name" value="<%= model.name %>">
            </div>
        </div>

        <div class="form-group">
            <label class="col-md-2" for="exampleInputPassword1">Mother</label>
            <div class="col-lg-10">
                <input name="mother" class="form-control" value="<%= model.mothersName %>">
            </div>
        </div>

        <div class="form-group row">
            <label class="col-md-2" for="birthPlace">Birthplace</label>
            <div class="col-md-10">
                <input name="birthPlace" class="form-control" value="<%= model.birthPlace %>">
            </div>
        </div>

        <div class="form-group">
            <label class="col-md-2" for="birthDate">Birth Date</label>
            <div class="col-lg-10">
                <input name="birthDate" id="birthDate-datepicker" class="form-control" value="<%= model.birthDate %>">
            </div>
        </div>

        <div class="form-group row">
            <label class="col-md-2" for="address">Address</label>
            <div class="col-md-10">
                <input name="address" class="form-control" placeholder="" value="<%= model.address %>">
            </div>
        </div>

        <div class="form-group">
            <label class="col-md-2" for="description">Description</label>
            <div class="col-lg-10">
                <input name="description" class="form-control" value="<%= model.description %>">
            </div>
        </div>

        <div class="pull-left">
            <button id="diary-delete" type="button" class="btn btn-danger btn-lg">
                <span class="glyphicon glyphicon-remove"></span>
            </button>
        </div>
        <div class="pull-right">
            <button id="diary-save" type="button" class="btn btn-primary btn-lg">
                <span class="glyphicon glyphicon-floppy-saved"></span>
                Save
            </button>
        </div>
    </form>
</div>
<script>
    $('#birthDate-datepicker').datepicker({
        format: "yyyy-mm-dd",
        weekStart: 1,
        autoclose: true,
        todayHighlight: true
    });
</script>